//
//  FMFaceBookTool.m
//  flutter_device_info_plugin
//
//  Created by 小琦 on 2025/2/25.
//

#import "FMFaceBookTool.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>

@implementation FMFaceBookTool

+ (void)reportUrlScheme:(nonnull NSString *)urlScheme appId:(nonnull NSString *)appId disPlayName:(nonnull NSString *)disPlayName clientToken:(nonnull NSString *)clientToken {    
    FBSDKSettings.sharedSettings.appID = appId;
    FBSDKSettings.sharedSettings.displayName = disPlayName;
    FBSDKSettings.sharedSettings.clientToken = clientToken;
    FBSDKSettings.sharedSettings.appURLSchemeSuffix = urlScheme;
    FBSDKSettings.sharedSettings.isAutoLogAppEventsEnabled = true;
    [[FBSDKApplicationDelegate sharedInstance] application:[UIApplication sharedApplication] didFinishLaunchingWithOptions:nil];
}

@end
